//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.ww.springboot.dd.amazon;

import java.net.URI;

import lombok.Data;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;

@Data
public class HttpParams<T> {
    private String url;
    private URI uri;
    private HttpMethod httpMethod;
    private MediaType mediaType;
    private HttpHeaders httpHeaders;
    private T body;

    public HttpParams() {
        this.httpMethod = HttpMethod.GET;
        this.mediaType = MediaType.APPLICATION_JSON_UTF8;
        this.httpHeaders = new HttpHeaders();
    }

    public void addHeader(String headerName, String headerValue) {
        this.httpHeaders.add(headerName, headerValue);
    }
}
